package code.rocky.chapter05;

import java.util.Arrays;
import java.util.List;

public class Suggest65 {
    public static void main(String[] args) {
        int[] data = {1, 2, 3, 4, 5};
        List list = Arrays.asList(data);
        System.out.println("列表中的元素数量是: " + list.size());
        System.out.println("元素类型: " + list.get(0).getClass());
        System.out.println("前后是否相等: " + data.equals(list.get(0)));
    }
}
